package com.android.rapidcash.api

import com.android.lib.base.network.BaseResult
import com.android.rapidcash.bean.*
import kotlinx.coroutines.flow.Flow
import okhttp3.RequestBody
import retrofit2.http.*

interface ApiService {


    @FormUrlEncoded
    @POST("rapidcash/tank/determinePublicIndia")
    fun getVerifCode(
        @Header("boundHam") vFlag: Boolean?,
        @FieldMap map: MutableMap<String,String>,
    ): Flow<BaseResult<SmsBean>>

    @FormUrlEncoded
    @POST("rapidcash/tank/thunderAshamedCity")
    fun loginForSms(
        @Header("boundHam") vFlag: Boolean?,
        @FieldMap map: MutableMap<String,String>,
    ): Flow<BaseResult<LoginBean>>

    //首页index
    @FormUrlEncoded
    @POST("rapidcash/ripeQuiz/mistakeHillyFoot")
    fun index(
        @Header("boundHam") vFlag: Boolean?,
        @FieldMap map: MutableMap<String,String>,
    ): Flow<BaseResult<IndexBean>>

    //我的页面
    @FormUrlEncoded
    @POST("rapidcash/grain/closeIncorrectBirthplace")
    fun custInfoBasicQuery(
        @Header("boundHam") vFlag: Boolean?,
        @FieldMap map: MutableMap<String,String>,
    ): Flow<BaseResult<CustInfoBasicQueryBean>>

    @FormUrlEncoded
    @POST("rapidcash/grain/frightenPublicArrangement")
    fun getIdentificationResult(
        @Header("boundHam") vFlag: Boolean?,
        @FieldMap map: MutableMap<String,String>,
    ): Flow<BaseResult<GetIdentificationResultBean>>

    @FormUrlEncoded
    @POST("rapidcash/ripeQuiz/dislikeSocialNationality")
    fun getAppValueList(
        @Header("boundHam") vFlag: Boolean?,
        @FieldMap map: MutableMap<String,String>,
    ): Flow<BaseResult<AppValueBean>>

    @FormUrlEncoded
    @POST("rapidcash/grain/importEachPoliceman")
    fun vipProducts(
        @Header("boundHam") vFlag: Boolean?,
        @FieldMap map: MutableMap<String,String>,
    ): Flow<BaseResult<BannerBean>>



}